package com.zhbit.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.zhbit.Service.NoticemangerService;
import com.zhbit.table.Notice;



public class WatchnoticeAction extends ActionSupport{
	private int  id;
	private List<Notice> noticelist;
	private NoticemangerService ns;
	public void setNs(NoticemangerService ns) {
		this.ns = ns;
	}
	public NoticemangerService getNs() {
		return ns;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public void setNoticelist(List<Notice> noticelist) {
		this.noticelist = noticelist;
	}
	public List<Notice> getNoticelist() {
		return noticelist;
	}
	public String execute() throws Exception {
	
		setNoticelist(ns.findByid(id));
			return SUCCESS;
		}
}
